import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'UserQuery',
    component: () => import('../views/UserQuery.vue')
  },
  {
    path: '/user-detail/:userId',
    name: 'UserDetail',
    component: () => import('../views/UserDetail.vue'),
    props: true
  },
  {
    path: '/acct-detail/:acctId',
    name: 'AcctDetail',
    component: () => import('../views/AcctDetail.vue'),
    props: true
  },
  {
    path: '/real-fund/:fundCode',
    name: 'RealFund',
    component: () => import('../views/FundDetail.vue'),
    props: true
  },
  {
    path: '/test',
    name: 'Test',
    component: () => import('../viewstest/Test.vue'),
    props: true
  },
  {
    path: '/chart',
    name: 'chart',
    component: () => import('../viewstest/chart.vue'),
    props: true
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router